home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / µSim 1.1 / FabLibsƒ / GeneralUsageUSA.r < prev    next >
Encoding:
Text File  |  1996-10-22  |  12.0 KB  |  553 lines  |  [TEXT/CWIE]

  1. /*
  2. Copyright © 1993-1995 by Fabrizio Oddone
  3. ••• ••• ••• ••• ••• ••• ••• ••• ••• •••
  4. This source code is distributed as freeware: you can copy, exchange, modify this
  5. code as you wish. You may include this code in any kind of application: freeware,
  6. shareware, or commercial, provided that full credits are given.
  7. You may not sell or distribute this code for profit.
  8. */
  9. #include    "FabLibResIDs.h"
  10.  
  11. #define NumTextLines        2
  12.  
  13. resource 'ALRT' (kALRT_GENERICERROR, purgeable) {
  14.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  15.     kALRT_GENERICERROR,
  16.     {    /* array: 4 elements */
  17.         /* [1] */
  18.         OK, visible, sound2,
  19.         /* [2] */
  20.         OK, visible, sound2,
  21.         /* [3] */
  22.         OK, visible, sound2,
  23.         /* [4] */
  24.         OK, visible, sound2
  25.     },
  26.     alertPositionMainScreen
  27. };
  28.  
  29. resource 'DITL' (kALRT_GENERICERROR, purgeable) {
  30.     {    /* array DITLarray: 2 elements */
  31.         /* [1] */
  32.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  33.         Button {
  34.             enabled,
  35.             "OK"
  36.         },
  37.         /* [2] */
  38.         {TextTop, TextLeft, TextBottom, TextRight},
  39.         StaticText {
  40.             disabled,
  41.             "An error ^0 has occurred; I hope you have a list of "
  42.             "error codes."
  43.         }
  44.     }
  45. };
  46.  
  47. #define NumTextLines        2
  48.  
  49. resource 'ALRT' (kALRT_OLDSYSTEM, purgeable) {
  50.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  51.     kALRT_OLDSYSTEM,
  52.     {    /* array: 4 elements */
  53.         /* [1] */
  54.         OK, visible, sound1,
  55.         /* [2] */
  56.         OK, visible, sound1,
  57.         /* [3] */
  58.         OK, visible, sound1,
  59.         /* [4] */
  60.         OK, visible, sound1
  61.     },
  62.     alertPositionMainScreen
  63. };
  64.  
  65. resource 'DITL' (kALRT_OLDSYSTEM, purgeable) {
  66.     {    /* array DITLarray: 3 elements */
  67.         /* [1] */
  68.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  69.         Button {
  70.             enabled,
  71.             "Quit"
  72.         },
  73.         /* [2] */
  74.         {TextTop, TextLeft, TextBottom, TextRight},
  75.         StaticText {
  76.             disabled,
  77.             "Sorry, this application needs System 7.0 or later."
  78.         }
  79.     }
  80. };
  81.  
  82. #define NumTextLines        3
  83.  
  84. resource 'ALRT' (kALRT_AEPROCESSERR, purgeable) {
  85.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  86.     kALRT_AEPROCESSERR,
  87.     {    /* array: 4 elements */
  88.         /* [1] */
  89.         OK, visible, sound2,
  90.         /* [2] */
  91.         OK, visible, sound2,
  92.         /* [3] */
  93.         OK, visible, sound2,
  94.         /* [4] */
  95.         OK, visible, sound2
  96.     },
  97.     alertPositionMainScreen
  98. };
  99.  
  100. resource 'DITL' (kALRT_AEPROCESSERR, purgeable) {
  101.     {    /* array DITLarray: 2 elements */
  102.         /* [1] */
  103.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  104.         Button {
  105.             enabled,
  106.             "OK"
  107.         },
  108.         /* [2] */
  109.         {TextTop, TextLeft, TextBottom, TextRight},
  110.         StaticText {
  111.             disabled,
  112.             "An error ^0 has occurred while processing an Apple Event; I "
  113.             "hope you have a list of error codes."
  114.         }
  115.     }
  116. };
  117.  
  118. #define NumTextLines        2
  119.  
  120. resource 'ALRT' (kALRT_INITWINDSERROR, purgeable) {
  121.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  122.     kALRT_INITWINDSERROR,
  123.     {    /* array: 4 elements */
  124.         /* [1] */
  125.         OK, visible, sound3,
  126.         /* [2] */
  127.         OK, visible, sound3,
  128.         /* [3] */
  129.         OK, visible, sound3,
  130.         /* [4] */
  131.         OK, visible, sound3
  132.     },
  133.     alertPositionMainScreen
  134. };
  135.  
  136. resource 'DITL' (kALRT_INITWINDSERROR, purgeable) {
  137.     {    /* array DITLarray: 2 elements */
  138.         /* [1] */
  139.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  140.         Button {
  141.             enabled,
  142.             "Quit"
  143.         },
  144.         /* [2] */
  145.         {TextTop, TextLeft, TextBottom, TextRight},
  146.         StaticText {
  147.             disabled,
  148.             "Sorry, an error ^0 has occurred while initializing my windows."
  149.         }
  150.     }
  151. };
  152.  
  153. #define NumTextLines        2
  154.  
  155. resource 'ALRT' (kALRT_AEINSTALLEVTERR, purgeable) {
  156.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  157.     kALRT_AEINSTALLEVTERR,
  158.     {    /* array: 4 elements */
  159.         /* [1] */
  160.         OK, visible, sound3,
  161.         /* [2] */
  162.         OK, visible, sound3,
  163.         /* [3] */
  164.         OK, visible, sound3,
  165.         /* [4] */
  166.         OK, visible, sound3
  167.     },
  168.     alertPositionMainScreen
  169. };
  170.  
  171. resource 'DITL' (kALRT_AEINSTALLEVTERR, purgeable) {
  172.     {    /* array DITLarray: 2 elements */
  173.         /* [1] */
  174.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  175.         Button {
  176.             enabled,
  177.             "Quit"
  178.         },
  179.         /* [2] */
  180.         {TextTop, TextLeft, TextBottom, TextRight},
  181.         StaticText {
  182.             disabled,
  183.             "Sorry, an error ^0 has occurred while installing the Apple Event handlers."
  184.         }
  185.     }
  186. };
  187.  
  188. #define NumTextLines        4
  189.  
  190. resource 'ALRT' (kALRT_MEMEXHAUSTED, purgeable) {
  191.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  192.     kALRT_MEMEXHAUSTED,
  193.     {    /* array: 4 elements */
  194.         /* [1] */
  195.         OK, visible, sound3,
  196.         /* [2] */
  197.         OK, visible, sound3,
  198.         /* [3] */
  199.         OK, visible, sound3,
  200.         /* [4] */
  201.         OK, visible, sound3
  202.     },
  203.     alertPositionMainScreen
  204. };
  205.  
  206. resource 'DITL' (kALRT_MEMEXHAUSTED, purgeable) {
  207.     {    /* array DITLarray: 2 elements */
  208.         /* [1] */
  209.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  210.         Button {
  211.             enabled,
  212.             "Quit"
  213.         },
  214.         /* [2] */
  215.         {TextTop, TextLeft, TextBottom, TextRight},
  216.         StaticText {
  217.             disabled,
  218.             "Sorry, there is not enough memory to run this application. Try "
  219.             "increasing its assigned memory in the Get Info window in the Finder."
  220.         }
  221.     }
  222. };
  223.  
  224. #define NumTextLines        2
  225.  
  226. resource 'ALRT' (kALRT_PLEASEDISMISSMOVABLEMODAL, purgeable) {
  227.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  228.     kALRT_PLEASEDISMISSMOVABLEMODAL,
  229.     {    /* array: 4 elements */
  230.         /* [1] */
  231.         OK, visible, silent,
  232.         /* [2] */
  233.         OK, visible, silent,
  234.         /* [3] */
  235.         OK, visible, silent,
  236.         /* [4] */
  237.         OK, visible, silent
  238.     },
  239.     alertPositionParentWindowScreen
  240. };
  241.  
  242. resource 'DITL' (kALRT_PLEASEDISMISSMOVABLEMODAL, purgeable) {
  243.     {    /* array DITLarray: 2 elements */
  244.         /* [1] */
  245.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  246.         Button {
  247.             enabled,
  248.             "OK"
  249.         },
  250.         /* [2] */
  251.         {TextTop, TextLeft, TextBottom, TextRight},
  252.         StaticText {
  253.             disabled,
  254.             "Sorry, you cannot do this now. "
  255.             "Please dismiss the dialog box first."
  256.         }
  257.     }
  258. };
  259.  
  260. #define NumTextLines        4
  261.  
  262. resource 'ALRT' (kALRT_DISMISSORDRAGANDDROP, purgeable) {
  263.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  264.     kALRT_DISMISSORDRAGANDDROP,
  265.     {    /* array: 4 elements */
  266.         /* [1] */
  267.         OK, visible, silent,
  268.         /* [2] */
  269.         OK, visible, silent,
  270.         /* [3] */
  271.         OK, visible, silent,
  272.         /* [4] */
  273.         OK, visible, silent
  274.     },
  275.     alertPositionParentWindowScreen
  276. };
  277.  
  278. resource 'DITL' (kALRT_DISMISSORDRAGANDDROP, purgeable) {
  279.     {    /* array DITLarray: 2 elements */
  280.         /* [1] */
  281.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  282.         Button {
  283.             enabled,
  284.             "OK"
  285.         },
  286.         /* [2] */
  287.         {TextTop, TextLeft, TextBottom, TextRight},
  288.         StaticText {
  289.             disabled,
  290.             "Sorry, you cannot do this now. "
  291.             "Please dismiss the dialog box first, "
  292.             "or try dragging the item onto the frontmost window."
  293.         }
  294.     }
  295. };
  296.  
  297. #define NumTextLines        3
  298.  
  299. resource 'ALRT' (kALRT_MONKEYTYPING, purgeable) {
  300.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  301.     kALRT_MONKEYTYPING,
  302.     {    /* array: 4 elements */
  303.         /* [1] */
  304.         OK, visible, sound2,
  305.         /* [2] */
  306.         OK, visible, sound1,
  307.         /* [3] */
  308.         OK, invisible, sound1,
  309.         /* [4] */
  310.         OK, invisible, sound1
  311.     },
  312.     alertPositionParentWindowScreen
  313. };
  314.  
  315. resource 'DITL' (kALRT_MONKEYTYPING, purgeable) {
  316.     {    /* array DITLarray: 2 elements */
  317.         /* [1] */
  318.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  319.         Button {
  320.             enabled,
  321.             "OK"
  322.         },
  323.         /* [2] */
  324.         {TextTop, TextLeft, TextBottom, TextRight},
  325.         StaticText {
  326.             disabled,
  327.             "Unfortunately, no one is listening to keystrokes "
  328.             "at the moment.\nYou might as well stop typing."
  329.         }
  330.     }
  331. };
  332.  
  333. #define NumTextLines        4
  334.  
  335. resource 'ALRT' (kALRT_INTERNETCONFIG, purgeable) {
  336.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  337.     kALRT_INTERNETCONFIG,
  338.     {    /* array: 4 elements */
  339.         /* [1] */
  340.         OK, visible, sound1,
  341.         /* [2] */
  342.         OK, visible, sound1,
  343.         /* [3] */
  344.         OK, visible, sound1,
  345.         /* [4] */
  346.         OK, visible, sound1
  347.     },
  348.     alertPositionMainScreen
  349. };
  350.  
  351. resource 'DITL' (kALRT_INTERNETCONFIG, purgeable) {
  352.     {    /* array DITLarray: 2 elements */
  353.         /* [1] */
  354.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  355.         Button {
  356.             enabled,
  357.             "OK"
  358.         },
  359.         /* [2] */
  360.         {TextTop, TextLeft, TextBottom, TextRight},
  361.         StaticText {
  362.             disabled,
  363.             "There is a problem with InternetConfig (error ^0). "
  364.             "Please make sure that InternetConfig 1.1 or later is properly installed."
  365.         }
  366.     }
  367. };
  368.  
  369. #define NumTextLines        5
  370.  
  371. resource 'ALRT' (kALRT_ICMISSINGHELPER, purgeable) {
  372.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  373.     kALRT_ICMISSINGHELPER,
  374.     {    /* array: 4 elements */
  375.         /* [1] */
  376.         OK, visible, sound1,
  377.         /* [2] */
  378.         OK, visible, sound1,
  379.         /* [3] */
  380.         OK, visible, sound1,
  381.         /* [4] */
  382.         OK, visible, sound1
  383.     },
  384.     alertPositionMainScreen
  385. };
  386.  
  387. resource 'DITL' (kALRT_ICMISSINGHELPER, purgeable) {
  388.     {    /* array DITLarray: 2 elements */
  389.         /* [1] */
  390.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  391.         Button {
  392.             enabled,
  393.             "OK"
  394.         },
  395.         /* [3] */
  396.         {TextTop, TextLeft, TextBottom, TextRight},
  397.         StaticText {
  398.             disabled,
  399.             "There is a problem with InternetConfig (1.1 or later is needed). "
  400.             "You may want to launch the InternetConfig application, "
  401.             "and check whether a helper application for this service is set."
  402.         }
  403.     }
  404. };
  405.  
  406.  
  407. #define NumTextLines        4
  408.  
  409. resource 'ALRT' (kALRT_FORCEREGISTERAPP, purgeable) {
  410.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  411.     kALRT_FORCEREGISTERAPP,
  412.     {    /* array: 4 elements */
  413.         /* [1] */
  414.         OK, visible, silent,
  415.         /* [2] */
  416.         OK, visible, silent,
  417.         /* [3] */
  418.         OK, visible, silent,
  419.         /* [4] */
  420.         OK, visible, silent
  421.     },
  422.     alertPositionMainScreen
  423. };
  424.  
  425. resource 'DITL' (kALRT_FORCEREGISTERAPP, purgeable) {
  426.     {    /* array DITLarray: 2 elements */
  427.         /* [1] */
  428.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  429.         Button {
  430.             enabled,
  431.             "OK"
  432.         },
  433.         /* [3] */
  434.         {TextTop, TextLeft, TextBottom, TextRight},
  435.         StaticText {
  436.             disabled,
  437.             "You must use the separate Register application "
  438.             "or the Web page online, "
  439.             "for payment through the Kagi Shareware system."
  440.         }
  441.     }
  442. };
  443.  
  444. #define NumTextLines        5
  445.  
  446. #define LongestButtonName    70    // Show Form
  447.  
  448. resource 'ALRT' (kALRT_SEPARATEREGISTERAPP, purgeable) {
  449.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  450.     kALRT_SEPARATEREGISTERAPP,
  451.     {    /* array: 4 elements */
  452.         /* [1] */
  453.         OK, visible, silent,
  454.         /* [2] */
  455.         OK, visible, silent,
  456.         /* [3] */
  457.         OK, visible, silent,
  458.         /* [4] */
  459.         OK, visible, silent
  460.     },
  461.     alertPositionMainScreen
  462. };
  463.  
  464. resource 'DITL' (kALRT_SEPARATEREGISTERAPP, purgeable) {
  465.     {    /* array DITLarray: 2 elements */
  466.         /* [1] */
  467.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  468.         Button {
  469.             enabled,
  470.             "Show Form"
  471.         },
  472.         /* [2] */
  473.         {ButtonTop, CancelButtonLeft, ButtonBottom, CancelButtonRight},
  474.         Button {
  475.             enabled,
  476.             "Cancel"
  477.         },
  478.         /* [3] */
  479.         {TextTop, TextLeft, TextBottom, TextRight},
  480.         StaticText {
  481.             disabled,
  482.             "Instead of filling this form, "
  483.             "for payment directly to me, "
  484.             "you may want to either use the separate Register application "
  485.             "or the Web page online, "
  486.             "for payment through the Kagi Shareware system."
  487.         }
  488.     }
  489. };
  490. #define LongestButtonName    LongestBtnName
  491.  
  492. #define NumTextLines        4
  493.  
  494. resource 'ALRT' (kALRT_SHAREWAREREMINDER, purgeable) {
  495.     {AlertTop, AlertLeft, AlertBottom, AlertRight},
  496.     kALRT_SHAREWAREREMINDER,
  497.     {    /* array: 4 elements */
  498.         /* [1] */
  499.         OK, visible, silent,
  500.         /* [2] */
  501.         OK, visible, silent,
  502.         /* [3] */
  503.         OK, visible, silent,
  504.         /* [4] */
  505.         OK, visible, silent
  506.     },
  507.     alertPositionMainScreen
  508. };
  509.  
  510. resource 'DITL' (kALRT_SHAREWAREREMINDER, purgeable) {
  511.     {    /* array DITLarray: 2 elements */
  512.         /* [1] */
  513.         {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
  514.         Button {
  515.             enabled,
  516.             "OK"
  517.         },
  518.         /* [2] */
  519.         {TextTop, TextLeft, TextBottom, TextRight},
  520.         StaticText {
  521.             disabled,
  522.             "This software is shareware, which means you can try it before you buy it. "
  523.             "You used it ^0 times, so please remember to pay the fee."
  524.         }
  525.     }
  526. };
  527.  
  528.  
  529. resource 'STR#' (1200, purgeable) {
  530.     {
  531.         /* [1] bug report */
  532.             "Copies a standard bug report form; "
  533.             "paste it into a text document or into an e-mail message.",
  534.         /* [2] e-mail */
  535.             "Copies the author’s e-mail address; "
  536.             "paste it into your favorite electronic mail application.",
  537.         /* [3] WWW */
  538.             "Copies this World Wide Web address "
  539.             "(in the Universal Resource Locator style). "
  540.             "Use it with applications such as MacWeb, Mosaic, Netscape.",
  541.         /* [4] e-mail IC */
  542.             "Launches your e-mail application "
  543.             "so that you can send a message to the author; "
  544.             "this feature needs InternetConfig 1.1 or later.",
  545.         /* [5] WWW IC */
  546.             "Launches your World Wide Web browser "
  547.             "so that this page is automatically shown; "
  548.             "this feature needs InternetConfig 1.1 or later, "
  549.             "and an active Internet connection.",
  550.     }
  551. };
  552.  
  553.